package com.tangweiliang.user.aspect;

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author :tangweiliang
 * @date : 2022/12/30 23:06
 * 未来的你会感谢现在努力的自己
 */
@Aspect
@Component
public class TangweiliangAspect {

    @Before("execution(public * com.tangweiliang.user.service.UserService.test())")
    public void TangweiliangBefore(JoinPoint joinPoint){
        System.out.println("TangweiliangBefore");
    }
}
